<?php
//队列处理幂等删除对应zset中的多余数值防止zset太大
namespace App\Console\Commands\Tasks;
use App\Services\Tools\IdempotentConsume;
use Illuminate\Console\Command;

class IdempotentDelete extends Command
{
    //命令名
    protected $signature = 'task:idempotent_delete';

    //命令描述:用户充值太过频繁报警
    protected $description = 'Delete Idempotent';

    public function __construct()
    {
        parent::__construct();
    }

    //业务处理
    public function handle()
    {
        $task = new IdempotentConsume();
        //定期删除zset中的数据防止数据太多
        $task->cronDeleteOutTimeKey();
    }

}